/*
* @Author: Srain
* @Date:   2018-07-21 20:50:00
* @Last Modified by:   Srain 
* @Last Modified time: 2018-10-06 09:52:33
*/


'use strict';

var _mm = require('util/mm.js');

var _project = {
    // 获取活动列表
    getProjectList : function(listParam, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/activity/wz/getActivityList'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    // 获取活动详细信息
    getProjectDetail : function(id, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/activity/wz/findById'),
            data    : {
                id  : id
            },
            success : resolve,
            error   : reject
        });
    },
    //报名活动
    JoinPractice : function(data, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/practice/wz/joinPractice'),
            data    : data,
            success : resolve,
            error   : reject
        });
    },
    //我的活动信息
    getProjectInfo : function(listParam,resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/baseVo/wz/myPractice'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _project;